var utils = require('./exports/utils')
var constant = require('./exports/constant')
var point_map = require('./exports/point_map')
var ad_util = require('./exports/ad_util')
var ocrUtils = require('./exports/ocrUtils')
var ad = require('./ad')
var bless = require('./bless')
var gold_video = require('./gold_video')
var read_ad = require('./read_ad')
var read = require('./read')
var treasure = require('./treasure')
var video = require('./video')
var novel = require('./novel')
function main() {
  while (true) {
    sleep(2 * 1000);
    bless.go_page_from_home();
    sleep(2 * 1000);
    video.go_page_from_home();
    sleep(2 * 1000);
    gold_video.go_page_from_home();
    sleep(2 * 1000);
    treasure.go_page_from_home();
    if (utils.exists_text_starts_with("明天再来")) {
      return;
    }
    sleep(2 * 1000);
    ad.go_page_from_home();
    sleep(2 * 1000);
    console.show();
    console.log("在等待下一个轮回,5s");
    sleep(5 * 1000);
    console.hide();
    sleep(2 * 1000);
  }
}
main();